package com.example.mapper;

import com.example.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author: 21050134
 * @date: 2023/10/19 9:12
 * @description:
 */
@Mapper
public interface OrderMapper {

	int deleteByPrimaryKey(Long id);

	int insert(Order record);

	int create(Order order);

	int insertSelective(Order record);


	//2 修改订单状态，从零改为1
	void update(@Param("userId") Long userId, @Param("status") Integer status);
	Order selectByPrimaryKey(Long id);
	int updateByPrimaryKeySelective(Order record);
	int updateByPrimaryKey(Order record);


}
